import { GLOBAL_REFRESH } from '../constant/mittEvent'
import * as MittUtil from '../mitt/MittUtil'
import bus from '../mitt/index'
export const regRefresh = (handler: any) => {
  MittUtil.replace(GLOBAL_REFRESH, handler)
}
export const notifyRefresh = () => {
  bus.emit(GLOBAL_REFRESH)
}
